package cn.yz.fresh.service.impl;

import cn.yz.fresh.dao.IGroupDAO;
import cn.yz.fresh.pojo.Category;
import cn.yz.fresh.pojo.Group;
import cn.yz.fresh.service.IGroupService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Kim昌完 on 2017/8/31.
 */
@Service
public class GroupServiceImpl implements IGroupService{
    private IGroupDAO groupDAOImpl;
    @Override
    public List<Group> queryAll(Category category) {
        return groupDAOImpl.queryAll(category);
    }

    public IGroupDAO getGroupDAOImpl() {
        return groupDAOImpl;
    }

    public void setGroupDAOImpl(IGroupDAO groupDAOImpl) {
        this.groupDAOImpl = groupDAOImpl;
    }
}
